package com.spark.lola;

import com.spark.lola.support.mvc.configuration.BaseLolaApplication;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @Author: DengYeJun
 * @Date: 2019/1/4 0004 17:19
 */
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.spark.lola.feign")
@SpringBootApplication()
@EnableScheduling
public class SupplierApplication extends BaseLolaApplication {
    public static void main(String[] args) {
        // 设置 外部配置文件路径
        setExtendConfigSetting("huarong","supplier-api");
        SpringApplication springApplication = new SpringApplication();
        springApplication.setAddCommandLineProperties(false);
        SpringApplication.run(SupplierApplication.class, args);
    }

}